package com.qingke.pms.pojo;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Project {
    private Integer id;

    private String code;

    private String name;

    private Date createTime;

    private Integer constructionUnit;

    private Integer firstParty;

    private Company constructionUnitCompany;
    
    private Company firstPartyCompany;
    
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getConstructionUnit() {
        return constructionUnit;
    }

    public void setConstructionUnit(Integer constructionUnit) {
        this.constructionUnit = constructionUnit;
    }

    public Integer getFirstParty() {
        return firstParty;
    }

    public void setFirstParty(Integer firstParty) {
        this.firstParty = firstParty;
    }

	public Company getConstructionUnitCompany() {
		return constructionUnitCompany;
	}

	public void setConstructionUnitCompany(Company constructionUnitCompany) {
		this.constructionUnitCompany = constructionUnitCompany;
	}

	public Company getFirstPartyCompany() {
		return firstPartyCompany;
	}

	public void setFirstPartyCompany(Company firstPartyCompany) {
		this.firstPartyCompany = firstPartyCompany;
	}

	@Override
	public String toString() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
		return "Project [id=" + id + ", code=" + code + ", name=" + name + ", create time=" + sdf.format(createTime)
				+ ", construction unit=" + constructionUnitCompany.getName() + ", first party=" + firstPartyCompany.getName() + "]";
	}
    
    
}